<div class="dialog_content">
    <form id="info_form" name="info_form" action="{:U('order_refund/edit')}" method="post">
    <table width="100%" class="table_form">
        <tr>
            <th width="60">退款金额:</th>
            <td>
                <if condition="$info.status eq 1">
                    <input type="text" class="input-text" size="20" name="refund_price" value="{$refund_price}" />
                <elseif condition="$info.status eq 2" />
                    {$info.refund_price}
                </if>
            </td>
        </tr>
        <tr>
            <th>备注:</th>
            <td>
                <if condition="$info.status eq 1">
                    <textarea name="remark" id="remark" cols="38" rows="3">{$info.remark}</textarea>
                <elseif condition="$info.status eq 2" />
                    {$info.remark}
                </if>
            </td>
        </tr>
        <tr>
            <th>状态:</th>
            <td>
                <if condition="$info.status eq 1">
                    <label><input type="radio" name="status" class="radio_style" value="2" <if condition="$info.status eq 2">checked="checked"</if>> 确认退款&nbsp;&nbsp;</label>
                    <label><input type="radio" name="status" class="radio_style" value="1" <if condition="$info.status eq 1">checked="checked"</if>> 暂不处理</label>
                <elseif condition="$info.status eq 2" />
                    已退款
                </if>
            </td>
        </tr>
    </table>
    <input name="id" type="hidden" value="{$info.id}">
    </form>
</div>
<script>
$(function(){
    $('#info_form').ajaxForm({success:complate,dataType:'json'});
    function complate(result){
        if(result.status == 1){
            $.dialog.get(result.dialog).close();
            $.pinphp.tip({content:result.msg});
            window.location.reload();
        } else {
            $.pinphp.tip({content:result.msg, icon:'alert'});
        }
    }
    

});
</script>